/**
 * @Author: hyx
 * @Date: 2019/12/15
 * @Last Modified by: yush
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
``;

/**
 * 根据条件查询结算单 已结算状态的数据
 * @param {*} params
 */
export const querySettles = params => axios.get(`${SERVER.VEHICLE}/doSettles/querySettles`, {
  params
});

/**
 * 根据vin 底盘号和 soNo 销售单号 执行出库功能
 */
export const doSaveInOutStock = params => axios.post(`${SERVER.VEHICLE}/doSettles/doSaveInOutStock`, params);

/**
 * 根据 vin和地盘号 获取销售退库的基本信息
 *
 */
export const queryStock = params => axios.get(`${SERVER.VEHICLE}/doSettles/queryStock`, {
  params
});

export const getSalPrintByVin = params => axios.get(`${SERVER.VEHICLE}/doSettles/getSalPrintByVin`, {
  params
});